package main

import (
	"fmt"
	"io/ioutil"
	"os"
)

func main() {
	files := os.Args[1:]
	if len(files) == 0 {
		os.Exit(1)
	}
	for _, filename := range files {
		data, err := os.Open(filename)
		if err != nil {
			panic(err)
		}
		content, err := ioutil.ReadAll(data)
		fmt.Println(string(content))
	}
}
